cmake_minimum_required(VERSION 3.22)

project(Sofa.Component.SceneUtility_test)

set(SOURCE_FILES
    AddResourceRepository_test.cpp
    MessageHandlerComponent_test.cpp
)

add_executable(${PROJECT_NAME} ${SOURCE_FILES})
add_definitions("-DSOFA_COMPONENT_SCENEUTILITY_TEST_RESOURCES_DIR=\"${CMAKE_CURRENT_SOURCE_DIR}/\"")
target_link_libraries(${PROJECT_NAME} Sofa.Testing Sofa.Component.SceneUtility)

add_test(NAME ${PROJECT_NAME} COMMAND ${PROJECT_NAME})
